/*
 * Copyright 2024 The Google Research Authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#anthea-bell-quote {
  text-align: center;
  margin-top: 300px;
  font-size: 14px;
  font-family: monospace;
}

.anthea-download-button {
  border: 0;
  outline: 1px solid gray;
  box-sizing: border-box;
}

.anthea-dropdown {
  position: relative;
  overflow: visible;
}
.anthea-dropdown:hover .anthea-dropdown-content {
  left: 0;
  top: 100%;
}
.anthea-dropdown-button {
  display: inline-block;
  text-align: center;
  padding: 10px 12px;
  margin: 0;
  font-weight: bold;
  border: 1px solid transparent;
  min-width: 10ch;
}
.anthea-dropdown:hover:not(:active) .anthea-dropdown-button {
  cursor: pointer;
  background-color: #ddd;
  border: 1px solid gray;
}

.anthea-dropdown-content {
  position: absolute;
  display: none;
  background-color: #f9f9f9;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  margin: 0;
  border: 1px solid gray;
}
.anthea-dropdown-item {
  margin: 0;
  padding: 15px;
  display: block;
  text-align: left;
  position: relative;
}
.anthea-dropdown-content .anthea-dropdown-item:nth-child(odd) {
  background: #F1F1F1;
}
.anthea-dropdown-content .anthea-dropdown-item:nth-child(even) {
  background: #FEFEFE;
}
.anthea-dropdown-content .anthea-dropdown-item:hover:not(:active) {
  background-color: lightgreen;
}

.anthea-eval-div {
  margin-top: 70px;
}

.anthea-evaluating {
  background-color: lavenderblush;
  padding: 2px 6px;
}

.anthea-help-iframe,
.anthea-log {
  box-sizing: border-box;
  height: 600px;
  width: 600px;
  overflow-y: auto;
}

.anthea-link {
  text-decoration: none;
}

.anthea-log-error {
  color: red;
}
.anthea-log-info {
}
.anthea-log-items * {
  margin: 4px;
}
.anthea-log-warning {
  color: orange;
}

.anthea-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  background: white;
  width:100%;
  font-size: 14px;
  font-family: monospace;
  border-bottom: 1px solid black;
  box-sizing: border-box;
}
.anthea-menu li.anthea-dropdown {
  display: inline-block;
}
.anthea-menu > ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.anthea-menu > ul > li.anthea-menu-text {
  float: right;
}
.anthea-menu-select-choices {
  color: black;
  font-family: monospace;
  width: 800px;
}
.anthea-menu-table tr {
  vertical-align: top;
}
.anthea-menu-table td:first-child {
  width: 250px;
  max-width: 250px;
  margin-right: 6px;
}
.anthea-menu-table td {
  padding: 4px 0;
}
.anthea-menu-text {
  font-style: italic;
  padding: 10px 12px;
}

#anthea-marot {
  margin-top: 70px;
}
.anthea-select {
  background: transparent;
}
.anthea-select-close {
  background: lightpink;
}
.anthea-select-keep {
  background: lightgreen;
}
.anthea-select,
.anthea-select-close,
.anthea-select-keep {
  min-width: 12ch;
  font-size: 14px;
  font-family: monospace;
  cursor: pointer;
}
.anthea-select:disabled,
.anthea-select-close:disabled,
.anthea-select-keep:disabled {
  cursor: not-allowed;
}
.anthea-select:hover:not(:disabled) {
  outline: 1px solid darkgreen;
  background: whitesmoke;
}
.anthea-select-close:hover:not(:disabled) {
  outline: 1px solid red;
  background: pink;
}
.anthea-select-keep:hover:not(:disabled) {
  outline: 1px solid darkgreen;
  background: mediumspringgreen;
}

.anthea-title {
  color: blue;
}

.anthea-viewing {
  display: flex;
  align-items: baseline;
  float: right;
  box-sizing: border-box;
  margin: 0;
  vertical-align: bottom;
}
.anthea-viewing-tab,
.anthea-viewing-tab-active {
  position: relative;
  box-sizing: border-box;
}
.anthea-viewing-tab-ext {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 100%;
  min-height: 2px;
  padding: 4px;
  background-color: white;
  outline: 0;
  border-top: 0;
  box-sizing: border-box;
}
.anthea-viewing-tab-button {
  font-size: 14px;
  background-color: #ddd;
  outline: none;
  color: gray;
  cursor: pointer;
  padding: 10px 12px;
  transition: 0.3s;
  border-radius: 10px 10px 0 0;
  border: 1px solid black;
  border-bottom: 0;
  box-sizing: border-box;
  font-weight: bold;
  z-index: 2;
}
.anthea-viewing-tab button:hover {
  background-color: #f0f0f0;
  color: black;
  cursor: pointer;
}
.anthea-viewing-tab-active button {
  background-color: white;
  color: black;
}
.anthea-viewing-tab-active .anthea-viewing-tab-ext {
  z-index: 2;
  display: block;
}

input[type=file]::file-selector-button {
  font-family: monospace;
  background: transparent;
  border: 1px solid gray;
  cursor: pointer;
}
input[type=file]::file-selector-button:disabled {
  cursor: not-allowed;
}
input[type=file]::file-selector-button:hover:not(:disabled) {
  background: whitesmoke;
}
